#include <boost/asio.hpp>
#include <boost/bind.hpp>

using boost::asio::ip::tcp;


void handle_accept(const boost::system::error_code& error)
{}

int main()
{
	boost::asio::io_service io_service;
	tcp::endpoint endpoint(tcp::v4(), 123);
	tcp::acceptor acceptor_(io_service, endpoint);
	tcp::socket socket_(io_service);

	acceptor_.async_accept(socket_,
        boost::bind(&handle_accept,
          boost::asio::placeholders::error));

	io_service.run();
}
